﻿using System;
using System.Linq;

    class QuadraticEquation
    {
        static void Main(string[] args)
        {
            Console.Write("Enter a= ");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Enter b= ");
            int b = int.Parse(Console.ReadLine());
            Console.Write("Enter c= ");
            int c = int.Parse(Console.ReadLine());
            int D = (b * b) - (4 * a * c);
            Console.WriteLine(D);
            int x1, x2;

            if (D == 0)
            { 
                x1 = -b / (2 * a);
                Console.WriteLine("x1= x2= {0}", x1);
            }
                else if(D < 0)
            {
                Console.WriteLine("There is no answer");
            }
          
            else 
            {
                x1 = (-b + (int)Math.Sqrt(D)) /( 2 * a);
                x2 = (-b - (int)Math.Sqrt(D)) / (2 * a);
                Console.WriteLine("x1= {0}, x2= {1}", x1, x2);
               
            }
            
            
            
        }
    }

